package cn.walls1717.juc.lock;

import lombok.extern.slf4j.Slf4j;

/**
 * 查看synchronized字节码
 *
 * javap -c
 * javap -v
 *
 * @author walls1717
 * @create 2022/12/09 21:35
 **/
@Slf4j
public class LockSyncDemo {

    Object obj = new Object();

    public void m1() {
        synchronized (obj) {
            log.info("m1 synchronized");
        }
    }

    public static void main(String[] args) {

    }
}
